import java.io.*;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		OutputStream os;
		ByteArrayOutputStream bos;
		DataOutputStream dos = null;
		FileOutputStream fos = null;
		try {
			fos = new FileOutputStream("test.txt");
			dos = new DataOutputStream(fos);
			dos.write(88);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (dos != null)
				try {
					dos.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
		}
	}
}
